import service from '@/utils/request'

// @Tags ReportInfor
// @Summary 创建举报信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ReportInfor true "创建举报信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /reportInfor/createReportInfor [post]
export const createReportInfor = (data) => {
  return service({
    url: '/reportInfor/createReportInfor',
    method: 'post',
    data
  })
}

// @Tags ReportInfor
// @Summary 删除举报信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ReportInfor true "删除举报信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /reportInfor/deleteReportInfor [delete]
export const deleteReportInfor = (params) => {
  return service({
    url: '/reportInfor/deleteReportInfor',
    method: 'delete',
    params
  })
}

// @Tags ReportInfor
// @Summary 批量删除举报信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除举报信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /reportInfor/deleteReportInfor [delete]
export const deleteReportInforByIds = (params) => {
  return service({
    url: '/reportInfor/deleteReportInforByIds',
    method: 'delete',
    params
  })
}

// @Tags ReportInfor
// @Summary 更新举报信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ReportInfor true "更新举报信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /reportInfor/updateReportInfor [put]
export const updateReportInfor = (data) => {
  return service({
    url: '/reportInfor/updateReportInfor',
    method: 'put',
    data
  })
}

// @Tags ReportInfor
// @Summary 用id查询举报信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ReportInfor true "用id查询举报信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /reportInfor/findReportInfor [get]
export const findReportInfor = (params) => {
  return service({
    url: '/reportInfor/findReportInfor',
    method: 'get',
    params
  })
}

// @Tags ReportInfor
// @Summary 分页获取举报信息列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取举报信息列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /reportInfor/getReportInforList [get]
export const getReportInforList = (params) => {
  return service({
    url: '/reportInfor/getReportInforList',
    method: 'get',
    params
  })
}
